package cn.dogger.easyboot.common.page.bean;

import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * @author dogger
 * 2021/7/30 15:25
 */
@Data
@Accessors(chain = true)
public class PageData {

    private Long pageCount;

    private List<?> data;

    /**
     * 构造函数
     * @param list 查询数据集合
     * @param pageCount 最大记录数
     */
    public PageData(List<?> list,Long pageCount){
        this.data = list;
        this.pageCount = pageCount;
    }

    public final static String PAGE ="page";
    public final static String PAGE_SIZE ="pageSize";
    public final static String PAGE_COUNT ="pageCount";
    public final static String DATA ="data";
}
